solving exponential equations using logs